package local.blueheart.springboot2.chapter13.controller;

import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.ResponseBody;

@Controller
public class HelloController {

    @RequestMapping(value = "/index")
    @ResponseBody
    public String home(){
        return "Hello,Spring boot 2";
    }

}
